<%@ page language="java" isELIgnored="false" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@ include file="/WEB-INF/jsp/ResourceGlobal.jsp"%>
<html  lang="zh">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>招商财富Solution - 投资研究</title>
<style type="text/css">
	.form-multi-col-panel {
		background: inherit;
	}
	.delete-icon {
		position: absolute;
	    left: 30px;
	    top: 29px;
	    color: #bbb9b9;
	}
	.delete-icon:hover {
		color: #ff9600;
	}
</style>
<script type="text/javascript">
	var investmentResearchPath = '<%=context%>business/investmentResearch/';
	//默认加载
	$(function() {
		//把访问路径传到js
		setPathPrefix(investmentResearchPath);
	});
</script>

<body class="fixed-nav">
	<input type="hidden" name="researchType" id="researchType" value=${researchType } />
	<!-- 顶部导航栏 -->
    <jsp:include page="/WEB-INF/jsp/system/index/homeHead.jsp">
    	<jsp:param name="currentActive" value="tzyj" />
    </jsp:include>
    <!-- 面包屑导航 -->
    <div class="location">
    	<i class="fas fa-home"></i>
    	<p>您现在的位置：主页</p>
    	<p class="current">&gt;投资研究</p>
    </div>
	<div class="tabs">
	    <ul id="myTabs" class="nav clear" role="tablist">
	        <li role="presentation" class="active tab"><a href="#market_opinion" role="tab" onclick="INVESTMENT_RESEARCH_INFO.changeType('1')" id="inner_investment_research_tab" data-toggle="tab">内部投资报告</a></li>
	        <li role="presentation" class="tab"><span class="gap"></span><a href="#supervise_dynamic_analyse" role="tab" onclick="INVESTMENT_RESEARCH_INFO.changeType('2')" id="outer_investment_research_tab" data-toggle="tab">外部投资报告</a></li>
        </ul>
    </div>

	<div class="result-box">
		<div class="form-multi-col-panel">
			<div class="form-item-group form-horizontal">
				<div>
					<div class="form-item">
						<span class="form-field">标题</span>
						<span class="form-input">
							<input type="text" class="form-control" id="researchTitle"/>
						</span>
			        </div>
					<div class="form-item" style="display: none;">
						<span class="form-field">作者</span>
						<span class="form-input">
							<select class="form-control use-select2" id="createId" placeholder="作者"></select>
						</span>
			        </div>
					<div class="form-item">
						<span class="form-field">发布时间</span>
						<span class="form-input">
							<input type="text" class="form-control" id="createTime"/>
						</span>
			        </div>
			        <div class="form-item">
						<span class="form-field"></span>
						<span class="form-input">
							<button class="btn btn-primary" type="submit" id="market_opinion-search" onclick="queryByCondtion()"><i class="fa fa-search"></i>&nbsp;查询</button>
							<button class="btn btn-outline btn-default" id="resetBtn" name="resetBtn"  type="reset">清空</button>
						</span>
					</div>
			    </div>
			</div>
		</div>
		<div class="form-search-group" id="innerAddDiv">
			<wasp:opera fun="INVESTMENT_RESEARCH_INFO.showInvestmentResearchAddView();" id="investmentResearchAdd"></wasp:opera>
		</div>
		<div class="form-search-group" id="outAddDiv" style="display: none;">
			<wasp:opera fun="INVESTMENT_RESEARCH_INFO.showInvestmentResearchAddView();" id="outterInvestmentResearchAdd"></wasp:opera>
		</div>
		
		<div id="InnerInvestmentIesearchGrid" class="research-list-container" style="margin-top:11px;">
			<ul class="list-group research-list"></ul>
			<div class="text-center">
			  <ul id="InnerInvestmentIesearchPaginator"></ul>
			</div>
		</div>
	</div>

<script type="text/javascript" src="<%=context%>resources/modules/business/investmentResearch/home.list.js?r=<%=Math.random()%>"></script>
<script type="text/javascript" src="<%=context%>resources/modules/bootstrap/js/plugins/paginator/bootstrap-paginator.js"></script>
<script type="x-tmpl-mustache" id="researchTemplate">
{{#result}}
<li class="list-group-item col-sm-12">
<div class="col-sm-2 text-center research-date">
	<wasp:hasPermission id="investmentResearchDelete"><a class="delete-icon" onclick="INVESTMENT_RESEARCH_INFO.deleteInvestmentResearch('{{id}}')"><i class="far fa-trash-alt"></i></a></wasp:hasPermission>
	<h2>{{DD}}</h2>
	{{YYYYMM}}
</div>
<div class="col-sm-10 text-left">
	<h3 class="research-title">
		<a href="/solution/business/investmentResearch/investmentResearchDetailView.do?id={{id}}" target="_blank">{{researchTitle}}</a>
	</h3>
	{{#researchAbstract}}
		<h6 class="research-abstract">摘要：{{researchAbstract}}</h6>
	{{/researchAbstract}}
	{{#attCount}}
		<span class="research-down"><a href="/solution/business/investmentResearch/downloadInvestmentResearchAttr.do?id={{id}}"><i class="fa fa-paperclip"></i> 点此下载资讯相关附件</a></span>
	{{/attCount}}
</div>
</li>
{{/result}}
</script>
</body>
</html>